<template>
  <uv-tabbar :value="currentTab" :fixed="true" :iconSize="40" :z-index="999">
    <uv-tabbar-item text="首页" icon="home" name="home" @click="handTab('/pages/index/index')"></uv-tabbar-item>
    <uv-tabbar-item text="我的" icon="account" name="account" @click="handTab('/user/index/index')"></uv-tabbar-item>
  </uv-tabbar>
</template>

<script>
export default {
  name: "specimenTabbar",
  props: {
    currentTab: {
      type: String,
      default: 'home'
    }
  },
  data() {
    return {}
  }, methods: {
    handTab(path) {
      uni.switchTab({
        url: path
      })

    }
  }
}
</script>

<style scoped lang="scss">

</style>